package com.csy.property.community.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.csy.property.community.domain.AjComplaintSuggest;
import com.csy.property.community.mapper.AjComplaintSuggestMapper;
import com.csy.property.community.service.AjCompaintSuggestService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * 投诉建议实现类
 */
@Service
public class AjComplaintSuggestServiceImpl extends ServiceImpl<AjComplaintSuggestMapper,AjComplaintSuggest> implements AjCompaintSuggestService {

    @Resource
    private AjComplaintSuggestMapper ajComplaintSuggestMapper;

    /**
     * 查询投诉建议列表
     * @param ajComplaintSuggest
     * @return
     */
    @Override
    public List<AjComplaintSuggest> selectComplaintSuggestList(AjComplaintSuggest ajComplaintSuggest) {
        return ajComplaintSuggestMapper.selectComplaintSuggestList(ajComplaintSuggest);
    }

    //统计建议数
    @Override
    public int countSuggest() {
        return ajComplaintSuggestMapper.countSuggest();
    }
}
